import service from '@/utils/request'
// @Tags JudgmentParagraph
// @Summary 创建裁决结果管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentParagraph true "创建裁决结果管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /JPG/createJudgmentParagraph [post]
export const createJudgmentParagraph = (data) => {
  return service({
    url: '/JPG/createJudgmentParagraph',
    method: 'post',
    data
  })
}

// @Tags JudgmentParagraph
// @Summary 删除裁决结果管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentParagraph true "删除裁决结果管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /JPG/deleteJudgmentParagraph [delete]
export const deleteJudgmentParagraph = (params) => {
  return service({
    url: '/JPG/deleteJudgmentParagraph',
    method: 'delete',
    params
  })
}

// @Tags JudgmentParagraph
// @Summary 批量删除裁决结果管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除裁决结果管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /JPG/deleteJudgmentParagraph [delete]
export const deleteJudgmentParagraphByIds = (params) => {
  return service({
    url: '/JPG/deleteJudgmentParagraphByIds',
    method: 'delete',
    params
  })
}

// @Tags JudgmentParagraph
// @Summary 更新裁决结果管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.JudgmentParagraph true "更新裁决结果管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /JPG/updateJudgmentParagraph [put]
export const updateJudgmentParagraph = (data) => {
  return service({
    url: '/JPG/updateJudgmentParagraph',
    method: 'put',
    data
  })
}

// @Tags JudgmentParagraph
// @Summary 用id查询裁决结果管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.JudgmentParagraph true "用id查询裁决结果管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /JPG/findJudgmentParagraph [get]
export const findJudgmentParagraph = (params) => {
  return service({
    url: '/JPG/findJudgmentParagraph',
    method: 'get',
    params
  })
}

// @Tags JudgmentParagraph
// @Summary 分页获取裁决结果管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取裁决结果管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /JPG/getJudgmentParagraphList [get]
export const getJudgmentParagraphList = (params) => {
  return service({
    url: '/JPG/getJudgmentParagraphList',
    method: 'get',
    params
  })
}

// @Tags JudgmentParagraph
// @Summary 不需要鉴权的裁决结果管理接口
// @Accept application/json
// @Produce application/json
// @Param data query flaudReq.JudgmentParagraphSearch true "分页获取裁决结果管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /JPG/getJudgmentParagraphPublic [get]
export const getJudgmentParagraphPublic = () => {
  return service({
    url: '/JPG/getJudgmentParagraphPublic',
    method: 'get',
  })
}
